<?php
namespace app\index\model;
use think\Model;

class Applets extends Model{

    protected $resultSetType = 'applets';


	public static function getId($id) {
		$result=self::where('id',$id)->find();
		return $result;
	}
	//查询小程序信息
	public static function queryMiniProgramList() {
		$result=self::where('status',1)->select();
		return $result;
	}
	//查询小程序信息
	public static function queryMiniProgramInfo($appId,$status=1) {
		$result=self::where('appid',$appId)->where('status',$status)->find();
		return $result;
	}
	//修改小程序窗口大小
	public static function updateMiniProgramWindowSize($where,$data) {
		$result=self::where('appid',$where['appId'])->update($data);
		return $result;
	}






}